Skip to content

Conversation

zhengshengning
Copy link
Contributor

@zhengshengning zhengshengning commented Aug 8, 2025

PR Category

Operator Mechanism

PR Types

Improvements

Description

Added API compatibility with PyTorch by introducing alias parameter.

paddle.ones_lik
paddle.repeat_interleave
paddle.take_along_axis
paddle.Tensor.repeat_interleave
paddle.unique_consecutive
paddle.var
paddle.nn.functional.embedding

API Name Param Alias
paddle.ones_like x input
paddle.repeat_interleave x,axis input,dim
paddle.take_along_axis x,axis input,dim
paddle.Tensor.repeat_interleave x,axis input,dim
paddle.unique_consecutive x,axis input,dim
paddle.var x,axis input,dim
paddle.nn.functional.embedding x input

Other
add alias unittest.

pcard-67164

Copy link

paddle-bot bot commented Aug 8, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@2d2476e). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #74490   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         4           
  Lines              ?         8           
  Branches           ?         0           
===========================================
  Hits               ?         8           
  Misses             ?         0           
  Partials           ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zhengshengning
Copy link
Contributor Author

/re-run all-failed

1 similar comment
@zhengshengning
Copy link
Contributor Author

/re-run all-failed

@zhengshengning zhengshengning changed the title [API compatibility] add Alias : paddle.unique_consecutive, paddle.embedding [API compatibility] add Alias : paddle.unique_consecutive, paddle.embedding, paddle. ones_like, paddle.repeat_interleave, paddle.var Aug 12, 2025
@zhengshengning zhengshengning changed the title [API compatibility] add Alias : paddle.unique_consecutive, paddle.embedding, paddle. ones_like, paddle.repeat_interleave, paddle.var [API compatibility] add Alias : paddle.unique_consecutive, paddle.embedding, paddle. ones_like, paddle.repeat_interleave, paddle.var, paddle. take_along_axis Aug 12, 2025
@zhangbo9674 zhangbo9674 merged commit d4f1984 into PaddlePaddle:develop Aug 12, 2025
103 of 106 checks passed
maxiaolong001 pushed a commit to maxiaolong001/Paddle that referenced this pull request Aug 12, 2025
…edding, paddle. ones_like, paddle.repeat_interleave, paddle.var, paddle. take_along_axis (PaddlePaddle#74490)

* add alias : unique_consecutive, embedding

* add alias : ones_like, repeat_interleave, var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants